package com.xzr;

import com.sun.javaws.IconUtil;

import java.util.Scanner;

public class Test2 {
    public static int  max(int a,int b){
        return a>b?a:b;
    }
    public static int  max(int a,int b,int c){
        int n = a>b?a:b;
        return n>c?n:c;
    }


    public static void main(String[] args) {
        int num = max(4,5);
        int num2 = max(4,6,7);
        System.out.println(num);
        System.out.println(num2);
    }
    public static int  fun(int a,int b){
        return a+b;
    }
    public static double  fun(double a,double b,double c){
        return a+b+c;
    }
    public static void main7(String[] args) {
        int sum = fun(10,20);
        double sum2 = fun(1.5,1.6,1.7);
        System.out.println(sum);
        System.out.println(sum2);
    }

    public static int fib(int n){
        if(n==1||n==2){
            return 1;
        }
        else{
            return(fib(n-1)+fib(n-2));
        }
    }

    public static void main6(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        System.out.println(fib(n));
    }

    static int compare2(int a, int b){
        return a>b?a:b;
    }
    static int compare3(int a, int b,int c){
        int n = compare2(a,b);
        return n>c?n:c;
    }
    public static void main5(String[] args) {
        int max2 = compare2(1000,5);
        int max3 = compare3(3,7,9999);
        System.out.println(max2);
        System.out.println(max3);
    }
    public static void main4(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i ; j++) {
                System.out.print(j+"*"+i+"="+i*j+" ");
            }
            System.out.println();
        }
    }
    public static void main3(String[] args) {
        Scanner sc = new Scanner(System.in);
        for ( int i = 0; i < 3; i++) {
            System.out.println("请输入密码:>");
            int input = sc.nextInt();

            if(input == 123456){
                System.out.println("登陆成功！");
                break;
            }else{
                System.out.println("密码错误！");
            }
        }
    }
    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        while(number!=0)
        {
            System.out.print(number % 10+",");
            number/=10;
        }


    }
    public static void main1(String[] args) {
        double sum = 0.0;
        int i = 1;
        for(i = 1;i<=100;i++)
        {
            if((i % 2)==1){
                sum+=(1.0/i);
            }
            else{
                sum-=(1.0/i);
            }

        }
        System.out.println(sum);
    }
}
